//
//  CMonsterData.cpp
//  FlashAnimation
//
//  Created by chiawei.tseng on 12/12/27.
//
//

#include "CMonsterData.h"


void CMonsterDatas::Init()
{
    LoadXMLData();
}

void CMonsterDatas::LoadXMLData()
{
    {
        MONSTER_DATA tmp;
        
        sprintf(tmp.ArmatureName,"Knight_f/Knight");
        sprintf(tmp.AnimationName,"Knight_f/Knight");
        sprintf(tmp.PnlName,"knight2.png");
        
        string strKey("knight");
        mapMonsterData[strKey] = tmp;
    }
}

MONSTER_DATA CMonsterDatas::LoadMonsterData(const char* pMonsterName)
{
    string strKey(pMonsterName);
    return mapMonsterData[strKey];
}